<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">



    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('产品')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-pro_id" data-rule="required" data-source="pro/index" data-params='{"custom[enterp_id]":{$row.enterp_id}}' class="form-control selectpage"  name="row[pro_id]" type="text" value="">
        </div>
    </div>


    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('防伪信息')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-noticle_id" data-rule="required" data-source="noticle/index" data-params='{"custom[enterp_id]":{$row.enterp_id}}' class="form-control selectpage"  name="row[noticle_id]" type="text" value="">
        </div>
    </div>


    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('代理商')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-agent_id" data-rule="required" data-source="agent/index" data-params='{"custom[enterp_id]":{$row.enterp_id}}' class="form-control selectpage"  name="row[agent_id]" type="text" value="">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('防伪模板')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-template_id" data-rule="required" data-source="template/index" data-params='{"custom[enterp_id]":{$row.enterp_id}}' class="form-control selectpage"  name="row[template_id]" type="text" value="">
        </div>
    </div>

{if condition="$row.is_suyuan==2"}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('溯源内容')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-suyuan_id" data-rule="required" data-source="suyuan/index" data-params='{"custom[enterp_id]":{$row.enterp_id}}' class="form-control selectpage" data-field="title" data-multiple="true" name="row[suyuan_id]" type="text" value="">
        </div>
    </div>
{/if}
{if condition="$row.is_activity==2"}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('活动名称')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-activity_id" data-rule="required" data-source="activity/index" data-params='{"custom[enterp_id]":{$row.enterp_id}}' class="form-control selectpage"  name="row[activity_id]" type="text" value="">
        </div>
    </div>
{/if}

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Start_number')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-start_number" class="form-control" name="row[start_number]" type="text" value="{$row.start_number|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('End_number')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-end_number" class="form-control" name="row[end_number]" type="text" value="{$row.end_number|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
        <div class="col-xs-12 col-sm-8">
                        
            <select  id="c-status" class="form-control selectpicker" name="row[status]">
                {foreach name="statusList" item="vo"}
                    <option value="{$key}" {in name="key" value="$row.status"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Remark')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-remark" class="form-control" name="row[remark]" type="text" value="{$row.remark|htmlentities}">
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
        </div>
    </div>
</form>
